3.246 \(\int \cos (c+d x) (b \cos (c+d x))^n \, dx\)

Optimal. Leaf size=69 \[ -\frac {\sin (c+d x) (b \cos (c+d x))^{n+2} \, _2F_1\left (\frac {1}{2},\frac {n+2}{2};\frac {n+4}{2};\cos ^2(c+d x)\right )}{b^2 d (n+2) \sqrt {\sin ^2(c+d x)}} \]

[Out]

-(b*cos(d*x+c))^(2+n)*hypergeom([1/2, 1+1/2*n],[2+1/2*n],cos(d*x+c)^2)*sin(d*x+c)/b^2/d/(2+n)/(sin(d*x+c)^2)^(
1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {16, 2643} \[ -\frac {\sin (c+d x) (b \cos (c+d x))^{n+2} \, _2F_1\left (\frac {1}{2},\frac {n+2}{2};\frac {n+4}{2};\cos ^2(c+d x)\right )}{b^2 d (n+2) \sqrt {\sin ^2(c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]*(b*Cos[c + d*x])^n,x]

[Out]

-(((b*Cos[c + d*x])^(2 + n)*Hypergeometric2F1[1/2, (2 + n)/2, (4 + n)/2, Cos[c + d*x]^2]*Sin[c + d*x])/(b^2*d*
(2 + n)*Sqrt[Sin[c + d*x]^2]))

Rule 16

Int[(u_.)*(v_)^(m_.)*((b_)*(v_))^(n_), x_Symbol] :> Dist[1/b^m, Int[u*(b*v)^(m + n), x], x] /; FreeQ[{b, n}, x
] && IntegerQ[m]

Rule 2643

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1)*Hypergeomet
ric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2])/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]), x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rubi steps

\begin {align*} \int \cos (c+d x) (b \cos (c+d x))^n \, dx &=\frac {\int (b \cos (c+d x))^{1+n} \, dx}{b}\\ &=-\frac {(b \cos (c+d x))^{2+n} \, _2F_1\left (\frac {1}{2},\frac {2+n}{2};\frac {4+n}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{b^2 d (2+n) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 70, normalized size = 1.01 \[ -\frac {\sqrt {\sin ^2(c+d x)} \cos (c+d x) \cot (c+d x) (b \cos (c+d x))^n \, _2F_1\left (\frac {1}{2},\frac {n+2}{2};\frac {n+4}{2};\cos ^2(c+d x)\right )}{d (n+2)} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]*(b*Cos[c + d*x])^n,x]

[Out]

-((Cos[c + d*x]*(b*Cos[c + d*x])^n*Cot[c + d*x]*Hypergeometric2F1[1/2, (2 + n)/2, (4 + n)/2, Cos[c + d*x]^2]*S
qrt[Sin[c + d*x]^2])/(d*(2 + n)))

________________________________________________________________________________________

fricas [F]  time = 0.62, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\left (b \cos \left (d x + c\right )\right )^{n} \cos \left (d x + c\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="fricas")

[Out]

integral((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (b \cos \left (d x + c\right )\right )^{n} \cos \left (d x + c\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="giac")

[Out]

integrate((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

maple [F]  time = 1.15, size = 0, normalized size = 0.00 \[ \int \cos \left (d x +c \right ) \left (b \cos \left (d x +c \right )\right )^{n}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*(b*cos(d*x+c))^n,x)

[Out]

int(cos(d*x+c)*(b*cos(d*x+c))^n,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (b \cos \left (d x + c\right )\right )^{n} \cos \left (d x + c\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="maxima")

[Out]

integrate((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \cos \left (c+d\,x\right )\,{\left (b\,\cos \left (c+d\,x\right )\right )}^n \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)*(b*cos(c + d*x))^n,x)

[Out]

int(cos(c + d*x)*(b*cos(c + d*x))^n, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (b \cos {\left (c + d x \right )}\right )^{n} \cos {\left (c + d x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))**n,x)

[Out]

Integral((b*cos(c + d*x))**n*cos(c + d*x), x)

________________________________________________________________________________________